<template>
  <div class="socialProof_wrapper">
    <div class="second_content">
      <svg fill="none" viewBox="0 0 1296 623" class="frame_svg">
        <defs>
          <radialGradient id="gradient" cx="50%" cy="50%" r="70%">
            <stop offset="50%" stop-color="#FCE344"></stop>
            <stop offset="90%" stop-color="#79FA4B"></stop>
            <stop offset="100%" stop-color="#30D7F1"></stop>
          </radialGradient>
        </defs>
        <path stroke="url(#gradient)" stroke-width="1"
          d="M0.8 592V31C0.5 14.4315 13.9314 1 30.5 1H1265.5C1282.07 1 1295.5 14.4315 1295.5 31V592C1295.5 608.569 1282.07 622 1265.5 622H30.5C13.9315 622 0.5 608.569 0.5 592Z"
          style="stroke-dasharray: 302.457px, 3478.36px" class="myPath"></path>
        <path stroke="url(#gradient)" stroke-width="1"
          d="M0.8 592V31C0.5 14.4315 13.9314 1 30.5 1H1265.5C1282.07 1 1295.5 14.4315 1295.5 31V592C1295.5 608.569 1282.07 622 1265.5 622H30.5C13.9315 622 0.5 608.569 0.5 592Z"
          style="stroke-dashoffset: 0.002; stroke-dasharray: 0px, 999999px"></path>
        <rect x="1" y="1" width="100%" height="100%" rx="30" stroke="#244348" stroke-dasharray="2 2"></rect>
      </svg>
      <div class="callout_wrapper">
        <h2 class="callout_title callout_title-lg">
          <div>{{ $t("secondContentTitle1") }}</div>
          <div> <span>{{ $t("secondContentTitle2") }}</span></div>
          <div>{{ $t("secondContentTitle3") }}</div>
        </h2>
        <h2 class="callout_title callout_title-s ">
          <!-- <div>
            {{ $t("secondContentTitle1") }}
          </div> -->
          <div>{{ $t("secondContentTitle1") }} <span>{{ $t("secondContentTitle2") }}</span>{{ $t("secondContentTitle3")
            }}</div>
        </h2>
      </div>

      <div class="doubleScroll_wrapper" style="--t: 52s">
        <div class="swiper-line mar-b-30px border-b-dd-2-after-image">
          <div class="swiper-line-f animation-rl animation-d-30"
            style="display: flex;flex-direction: row;justify-content: flex-start; align-items: center;">
            <template v-for="(image, index) in images1" :key="index">
              <div class="swiper-content">
                <img class="swiper-content-img" alt="" role="presentation" aria-hidden="true" :src="image" />
              </div>
            </template>
          </div>
          <div class="swiper-line-s animation-rl animation-d-15"
            style="display: flex;flex-direction: row;justify-content: flex-start; align-items: center;">
            <template v-for="(image, index) in images1" :key="index">
              <div class="swiper-content">
                <img class="swiper-content-img" alt="" role="presentation" aria-hidden="true" :src="image" />
              </div>
            </template>
          </div>
        </div>
        <div class="swiper-line">
          <div class="swiper-line-f animation-lr  animation-d-30"
            style="display: flex;flex-direction: row;justify-content: flex-start; align-items: center;">
            <template v-for="(image, index) in images2" :key="index">
              <div class="swiper-content">
                <img class="swiper-content-img" alt="" role="presentation" aria-hidden="true" :src="image" />
              </div>
            </template>
          </div>
          <div class="swiper-line-s animation-lr  animation-d-15"
            style="display: flex;flex-direction: row;justify-content: flex-start; align-items: center;">
            <template v-for="(image, index) in images2" :key="index">
              <div class="swiper-content">
                <img class="swiper-content-img" alt="" role="presentation" aria-hidden="true" :src="image" />
              </div>
            </template>
          </div>
        </div>
      </div>


    </div>
  </div>
</template>

<script setup>
import anlianlogo from "/src/assets/company-logo/anlian-logo.jpg";
import zgrslogo from "/src/assets/company-logo/zgrs-logo.jpg";
import nipponlifelogo from "/src/assets/company-logo/nippon-life-logo.png";
import daduhuilogo from "/src/assets/company-logo/daduhui-logo.jpg";
import anshenglogo from "/src/assets/company-logo/ansheng-logo.jpg";
import baodexinlogo from "/src/assets/company-logo/baodexin-logo.png";
import sulishilogo from "/src/assets/company-logo/sulishi-logo.webp";
import baochenglogo from "/src/assets/company-logo/baocheng-logo.jpg";
import youbanglogo from "/src/assets/company-logo/youbang-logo.webp";
import pinganlogo from "/src/assets/company-logo/pingan-logo.jpg";
const images1 = [
  anlianlogo,
  zgrslogo,
  nipponlifelogo,
  daduhuilogo,
  anshenglogo,
];
const images2 = [
  baodexinlogo,
  sulishilogo,
  baochenglogo,
  youbanglogo,
  pinganlogo,
];
</script>

<style scoped lang="less">
.socialProof_wrapper {
  display: flex;
  -webkit-box-align: center;
  // align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  width: 100%;
  background: rgb(0, 32, 37);
  height: 780px;
  padding: 80px 73px 79px 72px;

  @media screen and (min-width: 1025px) {
    height: 54.167vw;
    padding: 5.556vw 5.069vw 5.486vw 5vw;
  }

  @media screen and (min-width: 501px) and (max-width: 1024px) {
    height: 650px;
    padding: 0 75px 30px;

  }


  .second_content {
    position: relative;
    display: flex;
    -webkit-box-align: center;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    border-radius: 30px;
    width: 1295px;
    height: 621px;
    padding: 0px 0px 0px 183px;
    box-sizing: border-box;

    .callout_title-s {
      display: none !important;
    }

    @media screen and (min-width: 1025px) {
      gap: 6.944vw;
      border-radius: 2.083vw;
      width: 100%;
      height: 43.125vw;
      padding: 40px 5vw 0px 5vw;
    }

    @media screen and (min-width: 501px) and (max-width: 1024px) {
      gap: 6.944vw;
      border-radius: 2.083vw;
      width: 100%;
      height: 43.125vw;
      padding: 40px 5vw 0px 5vw;
    }

    @media screen and (max-width: 500px) {

      height: 45.125vw;

      width: 100%;
      padding: 0;
      display: unset;

      .callout_wrapper {
        order: 2;
        width: 100%;

        .callout_title {
          font-size: 31px;
          text-align: center;
        }

        .callout_title-lg {
          display: none !important;
        }

        .callout_title-s {
          display: block !important;
          font-size: 9.6vw !important;
          text-align: left;

          div {
            text-align: left;
          }
        }
      }

    }

    .frame_svg {
      position: absolute;
      z-index: 5;
      top: 0px;
      left: 0px;
      overflow: visible;
      width: 100%;
      height: 100%;

      @media screen and (max-width: 500px) {
        // height: 122.667vw;
      }

      .myPath {
        stroke-dasharray: 3781;
        /* 设置与路径长度相等的dasharray */
        stroke-dashoffset: 3781;
        /* 初始偏移量设置为路径长度，使得路径隐藏 */
        animation: gopath 3s linear infinite;
        /* 使用linear缓动函数 */
      }

      @keyframes gopath {
        0% {
          stroke-dashoffset: 0;
        }

        100% {
          stroke-dashoffset: -3781;
        }
      }
    }

    .callout_wrapper {
      display: flex;
      flex-direction: column;
      width: 100%;
      gap: 30px;

      @media screen and (min-width: 1025px) {
        gap: 2.083vw;
        width: 100%;
        text-align: center;
      }

      @media screen and (max-width: 1024px) {
        position: absolute;
        bottom: 0;
        transform: translate(0, 100%);
      }


      .callout_title {
        color: rgb(255, 255, 255);
        font-family: Gellix;
        font-weight: 500;
        font-size: 48px;
        letter-spacing: -0.03em;
        line-height: 110%;
        width: 100%;
        transition: all .4s;
        text-align: center;

        @media screen and (min-width: 1441px) {
          font-size: 3.333vw;
          display: block;
        }

        @media screen and (min-width: 1025px) and (max-width: 1440px) {
          font-size: 3.333vw;
          display: block;
        }

        @media screen and (min-width: 501px) and (max-width: 1024px) {
          font-size: 4.25vw;
          display: block;
        }

        @media screen and (max-width: 500px) {
          font-size: 5.6vw;
          display: block;
        }

        // @media screen and (min-width: 1025px) {
        //   font-size: 3.333vw;
        //   display: block;
        //   margin-top: 2vw;
        // }

        // @media screen and (min-width: 501px) and (max-width: 1024px) {
        //   font-size: 6vw;
        //   margin-top: 8vw;
        // }

        div>span {
          -webkit-text-fill-color: transparent;
          background-size: 100%;
          background-clip: text;
          background-image: linear-gradient(277.33deg,
              rgb(252, 227, 68) -2.48%,
              rgb(121, 250, 75) 47.21%,
              rgb(48, 215, 241) 93.62%);
        }
      }
    }

    .doubleScroll_wrapper {
      height: 100%;
      /*  display: flex;
      flex-direction: row;
      overflow: hidden;
      position: relative;
      width: 100%;*/

      @media screen and (min-width: 1025px) {
        width: 100%;
        overflow: hidden;
      }

      @media screen and (min-width: 501px) and (max-width: 1024px) {
        height: calc(100% - 40px);
        width: 100%;
        overflow: hidden;
      }

      .gradient_1 {
        top: -1px;
        bottom: unset;
        transform: rotate(180deg);
        position: absolute;
        z-index: 2;
        right: 0;
        width: 100%;
        background: linear-gradient(to top,
            rgba(0, 32, 37, 0.95) 0%,
            rgba(0, 32, 37, 0) 100%);

        @media screen and (min-width: 1025px) {
          height: 10.76vw;
        }
      }

      .gradient_4 {
        position: absolute;
        z-index: 2;
        right: 0;
        width: 100%;
        bottom: -1px;
        background: linear-gradient(to top,
            rgba(0, 32, 37, 0.95) 0%,
            rgba(0, 32, 37, 0) 100%);

        @media screen and (min-width: 1025px) {
          height: 10.76vw;
        }
      }

      .gatsby-image-wrapper {
        display: flex;

        img {
          /*  object-fit: cover;*/
          height: 100%;
          width: 100%;
        }
      }

      .gradient_2 {
        display: flex;
        flex-direction: column;
        -webkit-box-align: center;
        align-items: center;
        width: 100%;
        height: 10vw;

        .gatsby-image-wrapper {
          .divimg:nth-child(1) {
            border-left: none !important;
          }
        }

        /*  @media screen and (min-width: 1025px) {
          width: 15vw;
        }*/
        /* animation: scrollDown 5s linear infinite;*/
        animation: scrollLeft 60s linear infinite;
      }

      .gradient_3 {
        display: flex;
        flex-direction: column;
        -webkit-box-align: center;
        align-items: center;

        width: 100%;
        height: 10vw;

        .gatsby-image-wrapper {
          .divimg:nth-child(1) {
            border-left: none !important;
          }
        }

        /*  @media screen and (min-width: 1025px) {
          width: 15vw;
        }*/
        /* animation: scrollTop 5s linear infinite;*/
        animation: scrollRight 60s linear infinite reverse;
      }

      @keyframes scrollLeft {
        from {
          transform: translateX(-100%);
        }

        to {
          transform: translateX(100%);
        }
      }

      @keyframes scrollRight {
        from {
          transform: translateX(-100%);
        }

        to {
          transform: translateX(100%);
        }
      }

    }
  }

}

@media screen and (max-width: 500px) {
  .socialProof_wrapper {
    height: 140vw;
    padding: 5.556vw 5.069vw 15.486vw 5vw;

    .doubleScroll_wrapper {
      height: auto;
      overflow: hidden;
      margin-top: 5vw;
    }
  }
}




.swiper-line-s {
  width: max-content;
  top: 0;
  position: absolute;
}

.swiper-line-f {
  width: max-content;
}








.swiper-content {
  background: #fff;
  margin-left: 20px;
}

.swiper-content {
  position: relative;
  overflow: hidden;

  @media screen and (min-width: 1441px) {
    height: 8vw;
    width: 18vw;
  }

  @media screen and (min-width: 1025px) and (max-width: 1440px) {
    height: 6vw;
    width: 13.5vw;
  }

  @media screen and (min-width: 501px) and (max-width: 1024px) {
    height: 14vw;
    width: 31.5vw;
  }

  @media screen and (max-width: 500px) {
    height: 12vw;
    width: 27vw;
  }
}

.swiper-content-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}


.animation-rl {
  animation: animaterl var(--t) linear infinite;
}

.animation-lr {
  animation: animatelr var(--t) linear infinite;
}

.animation-d-15 {
  animation-delay: calc(var(--t) / -2);
}

.animation-d-30 {
  animation-delay: calc(var(--t) * -1);
}

.swiper-line {
  width: 100%;
  position: relative;
}

.mar-b-30px {
  margin-bottom: 30px;
}

@keyframes animaterl {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes animatelr {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.border-b-dd-2-after-image {
  position: relative;
}

.border-b-dd-2-after-image::after {
  content: '';
  width: 100%;
  height: 0px;
  position: absolute;
  bottom: -15px;

  border-bottom: 2px dotted rgb(69, 92, 96);
}

.callout_title-s {
  display: none;
}
</style>
